package springbootyx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springbootyx.entity.SimpleUser;
import springbootyx.mapper.ISimpleUserMapper;
@Service

public class SimpleUserService {
    @Autowired
    private ISimpleUserMapper simpleUserMapper;
    //用户注册
    public void register(String username, String password, String email) {
        simpleUserMapper.register(username, password, email);
    }


    //通过用户名密码获取一个SimpleUser
    public SimpleUser getSimpleUser(String username, String password) {
        return simpleUserMapper.getSimpleUser(username, password);
    }
}
